package com.example.mahoutdemo.core.customer.commodity.operation;

import com.example.mahoutdemo.utils.RecommendPreference;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class CustomerPreference implements RecommendPreference {
    private Long id;

    private Long customerId;

    private Long commodityId;

    private Float value;

    private LocalDateTime createTime;

    @Override
    public long getUserId() {
        return this.customerId;
    }

    @Override
    public long getItemId() {
        return this.commodityId;
    }
    @Override
    public float getValue() {
        return this.value;
    }
}

